package com.web.sdk.bean;

/**
 * <p>ClassName    JsonMessage</p>
 * <p>Description  异常的json格式封装 </p>
 * <p>CopyRight(c) 2016/1/4</p>
 * <p>Company      liansheng</p>
 *
 * @author yiyongyao
 * @version 1.0.0
 */
public class JsonMessage {

    public JsonMessage() {
    }
    public JsonMessage(BExceptionDescription description) {
        this.code = description.getCode();
        this.errorMessage= description.getErrorMessage();
    }

    private Integer code;
    private String  errorMessage;


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
